﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IB_RdstandardBill : IBll
    {
        /// <summary>
        /// 检查是否符合交通量划分标准
        /// </summary>
        /// <param name="rdid"></param>
        /// <param name="begin"></param>
        void CheckMp(string rdid, double begin,double end);
        void Save<T>(T entity) 
            where T:class ,IB_Rdstandard;

        void Remove(string rdwayid);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IB_Rdstandard;
        /// <summary>
        /// 获取路线下所路段的
        /// </summary>
        /// <returns></returns>
        System.Data.DataTable GetRdStandard(IPagingInfo info);
        /// <summary>
        /// 保存划分标准
        /// </summary>
        /// <param name="rdwayid"></param>
        /// <param name="direction"></param>
        /// <param name="data"></param>
        void SaveRdStandard(string rdwayid,string data);
        /// <summary>
        /// 获取划分标准详细信息
        /// </summary>
        /// <param name="rdwayid"></param>
        /// <returns></returns>
        dynamic GetRdStandardDeatil(string rdwayid);
    }
}
